Prev | Next

Creating a Flag

<< | >>

Creating A Pennant

Overview

So far, we've seen how to make rectangular flags, but the 3D Flag software can make flags of any shape, such as pennants and streamers. It can also create curved flags and even flags with holes and cut-outs. All of this magic is done by adding an alpha channel to your color layer. In this section, we'll show you how to create a pennant.

Preparing The Flag

In order to make a non-rectangular flag, the flag image must be created with an alpha channel. This is a fourth channel, in addition to the red, green, and blue channels, that specifies where the transparent areas exist.

There are many ways to create an image with an alpha channel, even within After Effects, but this example uses an image created in Adobe Photoshop.

To see what an alpha channel looks like, do the following:

  1. Open the "Pennant.psd" file in Photoshop. This file can be found in the "Tutorial Images" folder located inside of the "Flag Tutorials" folder. If you don't have Photoshop, just read this section. You'll see what you need to see here.
  2. The image should look like the picture below.



  3. Where is the transparency? At this point Photoshop is only showing you the RGB color. To see the alpha channel, open the "Channels" palette (Window> Channels).


  4. Click on the "Alpha 1" channel. The image changes to show the alpha channel for the image.



    The white area represents where you will see the flag. The flag will not be visible in the black areas. By drawing on the alpha channel you can create a flag of any shape.

Making The Pennant

Creating a non-rectangular flag is as simple as choosing a layer that has black in the alpha channel.

  1. Open the "Quick Start.aep" project.
  2. Set the background color of the Comp to medium gray. Select Composition> Background Color and then use the color picker to select a medium gray color.
  3. Import the image called "Pennant.psd" found in the "Tutorial Images" folder within the "Flag Tutorials" folder. This is the same image you looked at in Photoshop.
  4. Add the image to the Comp and turn off the visibility.
  5. In the Effect Controls window, find the Color From Layer menu and select "Pennant.psd."



    Your flag will change into a pennant.

Choosing The Right Quality Setting

  1. When the Layer Quality switch is on the Draft setting, the alpha channel affects the color of the flag but not the shape.

  2. Set the layer Quality switch for the "My First Flag" layer to Best quality.



  3. The black parts will disappear and you will have a perfect pennant.



The next chapter on Wind and Gravity will discuss how to use forces to make your flag wave in different directions.